/*
 * @Description:发布详情
 * @Author: iamsmiling
 * @Date: 2021-06-05 18:12:23
 * @LastEditTime: 2021-06-10 08:58:00
 */
import 'package:credit_business_circle/domain/local/publish/publish_category_entity.dart';
import 'package:credit_business_circle/pages/publish_square/children/publish_center/dialog/show_vip_dialog.dart';
import 'package:credit_business_circle/routes/app_routes.dart';
import 'package:get/get.dart';

class PublishCenterController extends GetxController {
  PublishType publishType = Get.arguments;
  bool showTip = true;

  close() {
    showTip = false;
    update();
  }

  Future publish() {
    return showVipDialog(Get.context!, onCancel: () {
      return Get.toNamed(Get.currentRoute + AppRoutes.publishDetail);
    }, onConfirm: Get.back);
  }
}
